package org.jeecg.modules.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("bus_booking_layout_day_price")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bus_booking_layout_day_price", description="预约单选定房型下每天房价")
public class BusBookingLayoutDayPrice implements Serializable {
    /**key*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "key")
    private String id;
    /**这个房价是那天的*/
    @ApiModelProperty(value = "这个房价是那天的",required = true)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date dayTime;
    /**定义的价格是多少*/
    @ApiModelProperty(value = "定义的价格是多少",required = true)
    private BigDecimal price;
    /**关联的预约单id*/
    @ApiModelProperty(value = "关联的预约单id")
    private String bookingOrderId;
    /**1散客2团队*/
    @ApiModelProperty(value = "1散客2团队",required = true)
    private Integer bookingType;
    /**团队类型下，关联的批次id*/
    @ApiModelProperty(value = "团队类型下，关联的批次id")
    private String batchId;
    /**房型id*/
    @ApiModelProperty(value = "房型id")
    private String roomLayoutId;
}
